<?php 
$fileHtmlStart = '';
$readHtmlStart = '';
$fileHtmlStart = $_SERVER['DOCUMENT_ROOT'].'/gcminteraction/html/registerid.html';
$readHtmlStart = fopen($fileHtmlStart, "r");
$htmlTxtStart = '';
$html = '';
while ($lineHtmlStart = fgets($readHtmlStart,1000)) {
    if (stristr ( $lineHtmlStart, '<!-- enrollFormName -->' )) {
		$replaceWithTxt = "enrollform";
		$lineHtmlStart = str_replace ( '<!-- enrollFormName -->', $replaceWithTxt, $lineHtmlStart );
	} else if (stristr ( $lineHtmlStart, '<!-- actionpage -->' )) {
		$replaceWithTxt = "../gcminteraction/view/startpoc.php";
		$lineHtmlStart = str_replace ( '<!-- actionpage -->', $replaceWithTxt, $lineHtmlStart );
	} else if (stristr ( $lineHtmlStart, '<!-- txtName -->' )) {
		$replaceWithTxt = "enrollTxt";
		$lineHtmlStart = str_replace ( '<!-- txtName -->', $replaceWithTxt, $lineHtmlStart );
	} else if (stristr ( $lineHtmlStart, '<!-- submitvalue -->' )) {
		$replaceWithTxt = "enroll";
		$lineHtmlStart = str_replace ( '<!-- submitvalue -->', $replaceWithTxt, $lineHtmlStart );
	}
	$html .= $lineHtmlStart;
}
echo $html;
?>